from django.urls import path
from . import views

app_name = "goods"

urlpatterns = [
    path(r"list/<category_id>/<page_num>/", views.ListView.as_view(), name="ListView"),  # 商品列表页
    path(r"hot/<category_id>/", views.HotView.as_view(), name="HotView"),  # 获取热销数据
    path(r"detail/<sku_id>/", views.SKUDetailView.as_view(), name="SKUDetailView"),  # 商品详情页
    path(r'detail/visit/<category_id>/', views.GoodsVisitView.as_view(), name="GoodsVisitView")  # 统计分类商品访问量
]
